#define text(label,name,value)
	#if(bean.edit=="true")
		#if(name=="modelNodeId")
			<div class="layui-form-item">
				<label class="layui-form-label">#(label)</label>
				<div class="layui-input-inline">
					<select name="modelNodeId" lay-filter="aihao">
						<option value="">请选择...</option>
						#for(nodeElement : query.getElementsBySitecodeAndModename(siteCode,"node"))
							<option value='#(nodeElement.attributeValue("id"))' #if(nodeElement.attributeValue("id") == value) selected="" #end >#(nodeElement.attributeValue("name"))</option>
						#end
					</select>
				</div>
			</div>
		#elseif(name=="modelInfoId")
			<div class="layui-form-item">
				<label class="layui-form-label">#(label)</label>
				<div class="layui-input-inline">
					<select name="modelInfoId" lay-filter="aihao">
						<option value="">请选择...</option>
						<option value="null">无</option>
						#for(infoElement : query.getElementsBySitecodeAndModename(siteCode,"info"))
							<option value='#(infoElement.attributeValue("id"))' #if(infoElement.attributeValue("id") == value) selected="" #end >#(infoElement.attributeValue("name"))</option>
						#end
					</select>
				</div>
			</div>
		#elseif(name=="attribute")
			<div class="layui-form-item">
				<label class="layui-form-label">#(label)</label>
				<div class="layui-input-block">
					#for(infoElement : query.getElementsBySitecodeAndModenames(siteCode,"attribute"))
						<input type="checkbox" name="attribute" title="#(infoElement.attributeValue("name"))" value="#(infoElement.attributeValue("number"))" #if(infoElement.attributeValue("number") == value) checked=" #end ">
					#end	
				</div>
			</div>
		#elseif(name=="createData")
			<div class="layui-form-item">
				<label class="layui-form-label">#(label)</label>
				<div class="layui-input-inline">
					<input type="text" name="#(name)" id="date" lay-verify="date" placeholder="yyyy-mm-dd" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this})" value="#(value)">
				</div>
			</div>
		#elseif(name=="text")
			<div class="layui-form-item">
				<label class="layui-form-label">#(label)</label>
				<div class="layui-input-block">
					<textarea class="layui-textarea layui-hide" name="#(name)" lay-verify="content" id="LAY_demo_editor">#(value)</textarea>
				</div>
			</div>
		#elseif(name=="image")
			<div class="layui-form-item">
				<label class="layui-form-label">#(label)</label>
				<div class="layui-input-inline">
					<input type="hidden" name="#(name)" id="uploadpath" value="#(value)" class="layui-upload-file"> 
					<div id="zyupload" class="zyupload"></div>  
				</div>
			</div>
		#else
			<div class="layui-form-item">
				<label class="layui-form-label">#(label)</label>
				<div class="layui-input-inline">
					<input type="text" name="#(name)" lay-verify="title" autocomplete="off" placeholder="3333" class="layui-input" value="#(value)">
				</div>
			</div>
		#end
	#end
#end
